package com.ruoyi.hatha.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

/**
 * 我的套餐对象 p_mytaocan
 * 
 * @author Dong
 * @date 2024-03-12
 */
public class PMytaocan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 套餐ID */
    @Excel(name = "套餐ID")
    private Long tcid;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long uid;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 剩余课时 */
    @Excel(name = "剩余课时")
    private Integer num;

    /** 是否用完 */
    @Excel(name = "是否用完")
    private Integer isused;

    @Transient
    private PTaocan taocan;

    public PTaocan getTaocan() {
        return taocan;
    }

    public void setTaocan(PTaocan taocan) {
        this.taocan = taocan;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTcid(Long tcid) 
    {
        this.tcid = tcid;
    }

    public Long getTcid() 
    {
        return tcid;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setNum(Integer num) 
    {
        this.num = num;
    }

    public Integer getNum() 
    {
        return num;
    }
    public void setIsused(Integer isused) 
    {
        this.isused = isused;
    }

    public Integer getIsused() 
    {
        return isused;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tcid", getTcid())
            .append("uid", getUid())
            .append("orderId", getOrderId())
            .append("createTime", getCreateTime())
            .append("num", getNum())
            .append("isused", getIsused())
            .toString();
    }
}
